package thread.learn.objectOverfolw;

/**
 * 对象溢出
 */
public class Main {

    public Main() {
        System.out.println(Main.this);
        System.out.println(Thread.currentThread());
        Thread t = new Thread(InnerClass::new);
        t.start();
    }

    class InnerClass {
        public InnerClass() {
            System.out.println(Main.this);
            System.out.println(Thread.currentThread());
        }
    }

    public static void main(String[] args) {
        new Main();
    }
}